1
0
mirror of https://github.com/danbee/micropub.git synced 2025-03-04 08:59:13 +00:00

Return fully qualified URL

This commit is contained in:
Daniel Barber 2019-11-11 21:43:58 -05:00
parent 327cd81de7
commit 97e4eeeb25

View File

@ -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