Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Following redirects #117

Open
nbbaier opened this issue May 27, 2024 · 0 comments
Open

Following redirects #117

nbbaier opened this issue May 27, 2024 · 0 comments

Comments

@nbbaier
Copy link

nbbaier commented May 27, 2024

I am testing implementing micropub endpoint that redirects to a second URL:

micropub endpoint url: https://nbbaier-myMicropub.web.val.run/micropub
redirect url: https://nbbaier-nbbaierapi.web.val.run/micropub

Currently, it seems micropub.rocks does not follow redirects. For example, test 600 returns a 302 and therefore fails

GET https://nbbaier-myMicropub.web.val.run/micropub?q=config HTTP/1.1
Authorization: Bearer <TOKEN>
HTTP/1.1 302 Found
Date: Mon, 27 May 2024 18:24:43 GMT
Content-Length: 0
Connection: keep-alive
Location: https://nbbaier-nbbaierapi.web.val.run/micropub?q=config
Access-Control-Allow-Origin: *
access-control-allow-methods: GET,HEAD,PUT,PATCH,POST,DELETE
rndr-id: a7f1265c-c7e7-46e3
x-powered-by: Express
x-render-origin-server: Render
Vary: Accept-Encoding
CF-Cache-Status: BYPASS
Set-Cookie: __cf_bm=rh09LU3BqwCbAn6lC342vK5rHlxySdPCB4yAgnelalg-1716834283-1.0.1.1-mv1ShPKVDBcx5YqB4UeBButSbSL6_ynk4O4NwTfx0cjRaaEgqSr1beyCzVITWar60MAd8q7hpoXugXvcKnbaTQ; path=/; expires=Mon, 27-May-24 18:54:43 GMT; domain=.val.run; HttpOnly; Secure; SameSite=None
Report-To: ...
NEL: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
Server: cloudflare
CF-RAY: 88a80b1dcee42393-SJC
alt-svc: h3=":443"; ma=86400

If it's compliant with the micropub spec, it would seem to make sense to follow redirects so this test passes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant