From 97e4eeeb250d2062df85c06fca9067603c216f76 Mon Sep 17 00:00:00 2001 From: Daniel Barber Date: Mon, 11 Nov 2019 21:43:58 -0500 Subject: [PATCH] Return fully qualified URL --- lib/micropub/webserver.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/micropub/webserver.rb b/lib/micropub/webserver.rb index 43ebfa9..0f6db95 100644 --- a/lib/micropub/webserver.rb +++ b/lib/micropub/webserver.rb @@ -28,7 +28,7 @@ module Micropub post = Post.new(params) if github.post!(post) - headers "Location" => post.path + headers "Location" => "#{ENV.fetch("SITE_URL")}#{post.path}" status 202 else status 400