Browse Source

Changelog; CS fixes

microsub
J. King 7 years ago
parent
commit
474f7fc2f6
  1. 12
      CHANGELOG
  2. 1
      build.xml
  3. 3
      dist/nginx-fcgi.conf
  4. 6
      lib/REST.php
  5. 2
      lib/REST/Request.php
  6. 2
      tests/docroot/Feed/Discovery/Invalid.php
  7. 2
      tests/docroot/Feed/Discovery/Valid.php

12
CHANGELOG

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

1
build.xml

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

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

6
lib/REST.php

@ -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);
}

2
lib/REST/Request.php

@ -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";
}

2
tests/docroot/Feed/Discovery/Invalid.php

@ -5,4 +5,4 @@
<title>Example article</title>
</html>
MESSAGE_BODY
];
];

2
tests/docroot/Feed/Discovery/Valid.php

@ -6,4 +6,4 @@
<link rel="alternate" type="application/rss+xml" href="http://localhost:8000/Feed/Discovery/Feed">
</html>
MESSAGE_BODY
];
];

Loading…
Cancel
Save