mirror of
https://github.com/RGBCube/serenity
synced 2025-07-07 08:27:35 +00:00
LibWeb: Let's not pass "%u" to String() and expect something to happen
This commit is contained in:
parent
54835689c9
commit
ee4cf0bc69
1 changed files with 1 additions and 1 deletions
|
@ -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 (status_code.has_value() && status_code.value() >= 400 && status_code.value() <= 499) {
|
||||||
if (error_callback)
|
if (error_callback)
|
||||||
error_callback(String("HTTP error (%u)", status_code.value()));
|
error_callback(String::format("HTTP error (%u)", status_code.value()));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
success_callback(ByteBuffer::copy(payload.data(), payload.size()), response_headers);
|
success_callback(ByteBuffer::copy(payload.data(), payload.size()), response_headers);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue