2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-09 20:57:11 +00:00

74_Unifi: fixed Cookies for UnifiController 5.9.4

git-svn-id: https://svn.fhem.de/fhem/trunk@16721 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
wuehler 2018-05-10 14:43:22 +00:00
parent 7116ef2848
commit 5cdb6eb25f
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
- bugfix: 74_Unifi: Cookies for UnifiController 5.9.4
- bugfix: 74_GardenaSmartDevice: fix uninitialized value $abilities
- feature: 72_FB_CALLMONITOR: support for wildcard phonebook entries (numbers
with trailing star sign)

View File

@ -22,6 +22,8 @@
# - feature: 74_Unifi: update VC-readings immediately when getting voucher
# V 2.2.2
# - fixed: 74_Unifi: restart-typo in poe
# V 2.2.3
# - fixed: 74_Unifi: Cookies for UnifiController 5.9.4
package main;
@ -794,7 +796,7 @@ sub Unifi_Login_Receive($) {
for (split("\r\n",$param->{httpheader})) {
if(/^Set-Cookie/) {
s/Set-Cookie:\s(.*?);.*/Cookie: $1/;
$hash->{httpParams}->{header} .= $_.'\r\n';
$hash->{httpParams}->{header} .= 'Cookie: '.$1.';\r\n';
}
}
if($hash->{httpParams}->{header} ne '') {