diff --git a/src/blobsets/httpservers.nim b/src/blobsets/httpservers.nim index f731e4e..b349899 100644 --- a/src/blobsets/httpservers.nim +++ b/src/blobsets/httpservers.nim @@ -120,11 +120,11 @@ proc serve*(hss: HttpStoreServer; port = Port(80)): Future[void] = req.respond(Http501, "method not implemented") await fut except KeyError: - await req.respond(Http404, "blob not found") + await req.respond(Http404, "") + # there is a bug with responding to HEAD with a message except ValueError: await req.respond(Http400, getCurrentExceptionMsg()) except: - try: - await req.respond(Http500, getCurrentExceptionMsg()) + try: await req.respond(Http500, getCurrentExceptionMsg()) except: discard hss.server.serve(port, handleRequest)