mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
LibWeb: Let's not pass "%u" to String() and expect something to happen
This commit is contained in:
@@ -174,7 +174,7 @@ void ResourceLoader::load(const URL& url, Function<void(const ByteBuffer&, const
|
||||
}
|
||||
if (status_code.has_value() && status_code.value() >= 400 && status_code.value() <= 499) {
|
||||
if (error_callback)
|
||||
error_callback(String("HTTP error (%u)", status_code.value()));
|
||||
error_callback(String::format("HTTP error (%u)", status_code.value()));
|
||||
return;
|
||||
}
|
||||
success_callback(ByteBuffer::copy(payload.data(), payload.size()), response_headers);
|
||||
|
||||
Reference in New Issue
Block a user