1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:37:35 +00:00

LibWeb: Use DOMException in XMLHttpRequest::set_request_header()

This commit is contained in:
Linus Groh 2021-02-20 00:45:24 +01:00 committed by Andreas Kling
parent 4e1de09340
commit c4d8cce9a2
2 changed files with 11 additions and 11 deletions

View file

@ -33,6 +33,7 @@
#include <LibWeb/Bindings/WindowObject.h>
#include <LibWeb/Bindings/Wrappable.h>
#include <LibWeb/DOM/EventTarget.h>
#include <LibWeb/DOM/ExceptionOr.h>
#include <LibWeb/XHR/XMLHttpRequestEventTarget.h>
namespace Web::XHR {
@ -71,7 +72,7 @@ public:
void open(const String& method, const String& url);
void send();
void set_request_header(const String& header, const String& value);
DOM::ExceptionOr<void> set_request_header(const String& header, const String& value);
private:
virtual void ref_event_target() override { ref(); }