Fix: correct Link header syntax
This commit is contained in:
parent
9abd239de2
commit
940347921e
2 changed files with 6 additions and 3 deletions
|
@ -17,9 +17,9 @@ class LinkHeadersMiddleware
|
||||||
{
|
{
|
||||||
$response = $next($request);
|
$response = $next($request);
|
||||||
$response->header('Link', '<https://indieauth.com/auth>; rel="authorization_endpoint"', false);
|
$response->header('Link', '<https://indieauth.com/auth>; rel="authorization_endpoint"', false);
|
||||||
$response->header('Link', config('app.url') . '/api/token>; rel="token_endpoint"', false);
|
$response->header('Link', '<' . config('app.url') . '/api/token>; rel="token_endpoint"', false);
|
||||||
$response->header('Link', config('app.url') . '/api/post>; rel="micropub"', false);
|
$response->header('Link', '<' . config('app.url') . '/api/post>; rel="micropub"', false);
|
||||||
$response->header('Link', config('app.url') . '/webmention>; rel="webmention"', false);
|
$response->header('Link', '<' . config('app.url') . '/webmention>; rel="webmention"', false);
|
||||||
|
|
||||||
return $response;
|
return $response;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## Version {next}
|
||||||
|
- Fix: correct the syntax of Link headers (issue#25)
|
||||||
|
|
||||||
## Version 0.0.14.12 (2016-10-24)
|
## Version 0.0.14.12 (2016-10-24)
|
||||||
- Attempt to fix some HTML validation issues
|
- Attempt to fix some HTML validation issues
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue