Commit cf67faa2 authored by Ricki Hirner's avatar Ricki Hirner

Accept */*, too (but with lower q)

parent d9fe9f28
......@@ -39,7 +39,7 @@ object MiscUtils {
}
/**
* Opens a connection from an URL and prepares some settings like timouts
* Opens a connection from an URL and prepares some settings like timeouts
* and request headers (User-Agent, Accept, etc.).
*/
fun prepareConnection(url: URL): URLConnection {
......@@ -49,7 +49,7 @@ object MiscUtils {
if (conn is HttpURLConnection) {
conn.setRequestProperty("User-Agent", Constants.USER_AGENT)
conn.setRequestProperty("Accept", "text/calendar")
conn.setRequestProperty("Accept", "text/calendar, */*;q=0.9")
}
return conn
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment