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

Small fixes to the GARM api server #138

Merged
merged 2 commits into from
Jul 18, 2023

Commits on Jul 18, 2023

  1. Fix Content-Type not being set on invalidAuthResponse

    When `w.WriteHeader(...)` is called, the HTTP headers are written in
    the HTTP response.
    
    Therefore, calling `w.Header().Add(...)` after `w.WriteHeader(...)`
    will not have any effect.
    
    Signed-off-by: Ionut Balutoiu <[email protected]>
    ionutbalutoiu committed Jul 18, 2023
    Configuration menu
    Copy the full SHA
    4787622 View commit details
    Browse the repository at this point in the history
  2. Fix calling /api/v1/first-run without ending /

    The endpoint endpoint `/api/v1/first-run` only works when we
    have ending `/`.
    
    This commit fixes this.
    
    Signed-off-by: Ionut Balutoiu <[email protected]>
    ionutbalutoiu committed Jul 18, 2023
    Configuration menu
    Copy the full SHA
    5720947 View commit details
    Browse the repository at this point in the history