mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-22 13:12:41 +00:00
Changelog; CS fixes
This commit is contained in:
parent
3482a35e54
commit
474f7fc2f6
7 changed files with 21 additions and 7 deletions
12
CHANGELOG
Normal file
12
CHANGELOG
Normal file
|
@ -0,0 +1,12 @@
|
|||
Version 0.1.1 (2017-09-30)
|
||||
==========================
|
||||
|
||||
Bug fixes:
|
||||
- Perform feed discovery like NextCloud News does
|
||||
- Respond correctly to HEAD requests
|
||||
- Various minor fixes
|
||||
|
||||
Version 0.1.0 (2017-08-29)
|
||||
==========================
|
||||
|
||||
Initial release
|
|
@ -11,6 +11,7 @@
|
|||
<include name="composer.*"/>
|
||||
<include name="arsse.php"/>
|
||||
<include name="bootstrap.php"/>
|
||||
<include name="CHANGELOG"/>
|
||||
<include name="LICENSE"/>
|
||||
<include name="README.md"/>
|
||||
</fileset>
|
||||
|
|
3
dist/nginx-fcgi.conf
vendored
3
dist/nginx-fcgi.conf
vendored
|
@ -9,4 +9,5 @@ fastcgi_param REQUEST_METHOD $request_method;
|
|||
fastcgi_param CONTENT_TYPE $content_type;
|
||||
fastcgi_param CONTENT_LENGTH $content_length;
|
||||
fastcgi_param REQUEST_URI $request_uri;
|
||||
fastcgi_param HTTPS $https if_not_empty;
|
||||
fastcgi_param HTTPS $https if_not_empty;
|
||||
fastcgi_param REMOTE_USER $remote_user;
|
|
@ -40,9 +40,9 @@ class REST {
|
|||
$class = $this->apis[$api]['class'];
|
||||
$drv = new $class();
|
||||
if ($req->head) {
|
||||
$res = $drv->dispatch($req);
|
||||
$res->head = true;
|
||||
return $res;
|
||||
$res = $drv->dispatch($req);
|
||||
$res->head = true;
|
||||
return $res;
|
||||
} else {
|
||||
return $drv->dispatch($req);
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ class Request {
|
|||
$this->url = $url;
|
||||
$this->body = $body;
|
||||
$this->type = $contentType;
|
||||
if($this->method=="HEAD") {
|
||||
if ($this->method=="HEAD") {
|
||||
$this->head = true;
|
||||
$this->method = "GET";
|
||||
}
|
||||
|
|
|
@ -5,4 +5,4 @@
|
|||
<title>Example article</title>
|
||||
</html>
|
||||
MESSAGE_BODY
|
||||
];
|
||||
];
|
||||
|
|
|
@ -6,4 +6,4 @@
|
|||
<link rel="alternate" type="application/rss+xml" href="http://localhost:8000/Feed/Discovery/Feed">
|
||||
</html>
|
||||
MESSAGE_BODY
|
||||
];
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue