diff --git a/Userland/Libraries/LibHTTP/HttpRequest.cpp b/Userland/Libraries/LibHTTP/HttpRequest.cpp index 0351cb97bb..b642a17930 100644 --- a/Userland/Libraries/LibHTTP/HttpRequest.cpp +++ b/Userland/Libraries/LibHTTP/HttpRequest.cpp @@ -37,7 +37,10 @@ ByteBuffer HttpRequest::to_raw_request() const StringBuilder builder; builder.append(method_name()); builder.append(' '); - builder.append(m_url.path()); + if (!m_url.path().is_empty()) + builder.append(m_url.path()); + else + builder.append('/'); if (!m_url.query().is_empty()) { builder.append('?'); builder.append(m_url.query());