← Back to team overview

dhis2-devs team mailing list archive

API not showing 401 Unauthorized error


Hi Devs,

I am wondering whether the behaviour I am seeing is a bug or something to
be expected due to some change.

When I run the following curl command:

curl -I -u admin:distric -H 'Accept: application/json'

I get an HTTP 302 response. Note that I have deliberately set the password
wrong so I can mock a 401 unauthorized response. I get the same response
when I run the command on version 2.28. However, as expected, when I run it
on 2.27, 2.26 etc I get a 401 HTTP response.

I hope someone can assist.



Follow ups