dstndstn / astrometry.net

Astrometry.net -- automatic recognition of astronomical images
http://astrometry.net
Other
661 stars 185 forks source link

Unable to upload due to difference in URL Encoding #249

Closed RhinoCodes closed 2 years ago

RhinoCodes commented 2 years ago

Hello, I am trying to use NodeJS to talk to the api with node-fetch. When i got to encode the JSON with encodeURIComponent() it succeeds, but there is a difference due to the api expecting the data to have +s in it, how should I generate the correct url encoded data?

Example of NodeJS Encoding with encodeURIComponent: session%22%3A%22 Form Submit: session%22%3A+%22

RhinoCodes commented 2 years ago

one sec i'm like 90% sure i'm just being dumb

RhinoCodes commented 2 years ago

I am being dumb but I'll post something after i get this sorted to help other people