From db26e7211a915406be128b311ffecff3308b8616 Mon Sep 17 00:00:00 2001 From: Hiago Silva Souza Date: Sat, 17 Nov 2018 18:47:51 -0200 Subject: [PATCH] Update requestify.js Adding the correct http verb for timeout. --- lib/requestify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/requestify.js b/lib/requestify.js index da18d85..273f940 100644 --- a/lib/requestify.js +++ b/lib/requestify.js @@ -125,7 +125,7 @@ var Requestify = (function() { */ timeout = setTimeout(function() { httpRequest.abort(); - defer.reject(new Response(405, {}, 'timeout exceeded')); + defer.reject(new Response(504, {}, 'timeout exceeded')); }, request.timeout); /**