Open jamietanna opened 4 years ago
Looking in the Network tab of the browser, I see a 500 response from https://micropub.rocks/server-tests/micropub
when hitting Run, which sends POST body:
test=34&endpoint=430&skipauth=0&method=post&body=h%3Dentry%26content%3DMicropub%2Btest%2Bof%2Bcreating%2Ban%2Bh-entry%2Bwith%2Bone%2Bcategory.%2BThis%2Bpost%2Bshould%2Bhave%2Bone%2Bcategory%2C%2Btest1%26category%3Dtest1
it's possible it's due to Caddy returning as HTTP/2 which returns the Location
header as lowercase (because it's case-insensitive in HTTP/2)
Correction: it's valid to be case insensitive as per HTTP/1.1, but in HTTP/2 it always sends as lowercase https://superuser.com/a/1467474
Not 100% sure if it's related to the GuzzleHTTP client as I've run it locally against an HTTP/2 endpoint and case-sensitivity doesn't seem to be an issue.
@aaronpk is it possible to see if there's anything in the logs?
Disabling HTTP/2 on Caddy still results in a 500 from Micropub.rocks, so I believe it's an issue unrelated to HTTP version / header case sensitivity.
Micropub.rocks seems to not register a response when using my staging Micropub endpoint:
Could this be related to the
Location
header returning a URL fragment not a querystring?