mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +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:
parent
7116ef2848
commit
5cdb6eb25f
@ -1,5 +1,6 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# 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.
|
# 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
|
- bugfix: 74_GardenaSmartDevice: fix uninitialized value $abilities
|
||||||
- feature: 72_FB_CALLMONITOR: support for wildcard phonebook entries (numbers
|
- feature: 72_FB_CALLMONITOR: support for wildcard phonebook entries (numbers
|
||||||
with trailing star sign)
|
with trailing star sign)
|
||||||
|
@ -22,6 +22,8 @@
|
|||||||
# - feature: 74_Unifi: update VC-readings immediately when getting voucher
|
# - feature: 74_Unifi: update VC-readings immediately when getting voucher
|
||||||
# V 2.2.2
|
# V 2.2.2
|
||||||
# - fixed: 74_Unifi: restart-typo in poe
|
# - fixed: 74_Unifi: restart-typo in poe
|
||||||
|
# V 2.2.3
|
||||||
|
# - fixed: 74_Unifi: Cookies for UnifiController 5.9.4
|
||||||
|
|
||||||
|
|
||||||
package main;
|
package main;
|
||||||
@ -794,7 +796,7 @@ sub Unifi_Login_Receive($) {
|
|||||||
for (split("\r\n",$param->{httpheader})) {
|
for (split("\r\n",$param->{httpheader})) {
|
||||||
if(/^Set-Cookie/) {
|
if(/^Set-Cookie/) {
|
||||||
s/Set-Cookie:\s(.*?);.*/Cookie: $1/;
|
s/Set-Cookie:\s(.*?);.*/Cookie: $1/;
|
||||||
$hash->{httpParams}->{header} .= $_.'\r\n';
|
$hash->{httpParams}->{header} .= 'Cookie: '.$1.';\r\n';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if($hash->{httpParams}->{header} ne '') {
|
if($hash->{httpParams}->{header} ne '') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user