Skip to content
Snippets Groups Projects
  • Matthias Schiffer's avatar
    f3960eeb
    gluon-web: improve error handling of parse_message_body() · f3960eeb
    Matthias Schiffer authored
    Actually raise an error and turn it into an HTTP 400 return code when
    something goes wrong, rather than ignoring the error.
    
    We also improve the conditions under which errors are thrown before
    pump() is called: We don't need to check for the multipart/form-data
    content-type twice, and a POST without this content-type is now always
    an error.
    f3960eeb
    History
    gluon-web: improve error handling of parse_message_body()
    Matthias Schiffer authored
    Actually raise an error and turn it into an HTTP 400 return code when
    something goes wrong, rather than ignoring the error.
    
    We also improve the conditions under which errors are thrown before
    pump() is called: We don't need to check for the multipart/form-data
    content-type twice, and a POST without this content-type is now always
    an error.